import junit.framework.TestCase;


public class Part1 extends TestCase 
{
    public void testHouseholder()
    {
	double testA[] = new double[]{1.0,0,1.0};
	double testB[] = new double[]{1.0,0,0};
	//double testC[][] = new double[][]{{2,1,0},{2,0,0},{1,1,1}};
	double testC[][] = new double[][]{{6,5,0},{5,1,4},{0,4,3}};
	Matrix test = new Matrix(testC);
	test.givens();
	//Matrix test2 = new Matrix(new double[][]{{2,0,1}});
	//test.householder();
	System.out.println(new Matrix(test.getQ()).toString());
	System.out.println(new Matrix(test.getR()).toString());
	System.out.println(new Matrix(test.getR()).matrixMultiply(new Matrix(test.getQ())).toString());
	//System.out.println(test2.matrixMultiply(test));
	//System.out.println(Matrix.householder(new double[]{1,.707},new double[]{1,0}).toString());
    }
}
